let express = require('express');
let router = express.Router();
let WeChatAction = require('../../action/weChatAction');

/* GET users listing. */
router.post('/getToken', function (req, res, next) {
    WeChatAction.getToken(req.body).then(res.res,res.rej);
});
router.post('/getQRCode', function (req, res, next) {
    WeChatAction.getQRCode(req.body).then(res.res,res.rej);
});
/**
 * 推送二维码分享图
 */
router.post('/getQRCodeImg', function (req, res, next) {
    WeChatAction.getQRCodeImg(req.body).then(res.res,res.rej);
});
router.post('/getWXConfig', function (req, res, next) {
    WeChatAction.getWXConfig(req.body).then(res.res,res.rej);
});
module.exports = router;